package com.agricultural.machine.chain;

/**
 * 安全事件类
 */
public class SafetyEvent {
    private final String machineId;
    private final String eventType;
    private final String eventData;
    private final String description;
    private boolean handled;

    public SafetyEvent(String machineId, String eventType, String eventData, String description) {
        this.machineId = machineId;
        this.eventType = eventType;
        this.eventData = eventData;
        this.description = description;
        this.handled = false;
    }

    public String getMachineId() {
        return machineId;
    }

    public String getEventType() {
        return eventType;
    }

    public String getEventData() {
        return eventData;
    }

    public String getDescription() {
        return description;
    }

    public boolean isHandled() {
        return handled;
    }

    public void setHandled(boolean handled) {
        this.handled = handled;
    }
} 